# -*- coding: utf-8 -*-
# @Time    : 2021/4/14 19:11
# @Author  : mokez
# @Email   : 1569089678@qq.com
# @File    : mod.py
# @Software: PyCharm

import random
import string


def activation_code(N):
    """
    生成激活码
    :param N:
    :return:
    """
    with open("zhengbo.txt", mode="a", encoding="utf-8") as fp:
        for i in range(N):
            str1 = "".join(random.sample(string.digits + string.ascii_uppercase, 32))
            print(str1)
            fp.write(str1 + "\n")
